package com.example.jeong.yuejian10.Service;


import com.example.jeong.yuejian10.Bean.ActivityBean;
import com.example.jeong.yuejian10.Bean.AttentionBean;
import com.example.jeong.yuejian10.Bean.EnterActBean;
import com.example.jeong.yuejian10.Bean.IsAttentionBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;



public interface ActivityService {
    //获取所有活动列表
    @GET("Activity/getActivitylist")
    Call<List<ActivityBean>> getActivitylist();

    //获取活动详情
    @GET("Activity/getDetail")
    Call<ActivityBean> getDetail(@Query("a_id") int a_id);
    //报名活动
    @GET("Activity/addactivityn")
    Call<EnterActBean> addactivityn(@Query("u_id") int u_id,
                                    @Query("a_id") int a_id);


    //判断是否收藏
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> getIsCollected(@Query("u_id") int u_id,
                                         @Query("select_id") int select_id,
                                         @Query("flag") String flag
    );
    //关注活动
    @GET("Attention/userCollectActivity")
    Call<AttentionBean> userCollectActivity(@Query("u_id") int u_id,
                                            @Query("a_id") int a_id
    );


}
